//
//  WXCoreDataManager.h
//  CoreDataAddressBook
//
//  Created by dllo on 15/11/20.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@interface WXCoreDataManager : NSObject
+(WXCoreDataManager *)defaults;

// 数据管理器类
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
// 模型管理器类
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
// 连接器类
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;
@end
